package com.huaxin.hxmodulesystem.mapping;

import com.huaxin.hxmodulesystem.dto.request.AddElectricianArchivesReqDTO;
import com.huaxin.hxmodulesystem.dto.request.UpdateElectricianArchivesReqDTO;
import com.huaxin.hxmodulesystem.models.ElectricianArchives;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

@Mapper(componentModel = "spring")
public interface ElectricianArchivesMapping {
    ElectricianArchives toEntity(AddElectricianArchivesReqDTO in);

    void updateEntity(UpdateElectricianArchivesReqDTO in, @MappingTarget ElectricianArchives entity);
}
